package com.scott.ch04.now.student.controller;

import com.scott.ch04.now.student.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class StudentController {


    @Resource
    private StudentService service;

    public int sum(int x,int y){
        int sum = service.add(x,y);
        return sum;
    }
    public int sub(int x,int y){
        int sum = service.sub(x,y);
        return sum;
    }
}
